#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <QMessageBox>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    if(init()==false){
        QMessageBox::StandardButton box=QMessageBox::critical(this, "警告","程序初始化失败！");
    }
}

MainWindow::~MainWindow()
{
    delete ui;
}

bool MainWindow::init(){
    bool retFlag = true;


    return retFlag;
}

void MainWindow::on_pushButton_driverInstall_clicked(){
    ui->stackedWidget->setCurrentIndex(0);
}


void MainWindow::on_pushButton_driverManage_clicked(){
    ui->stackedWidget->setCurrentIndex(1);
}


void MainWindow::on_pushButton_driverSearch_clicked(){
    ui->stackedWidget->setCurrentIndex(2);
}


void MainWindow::on_pushButton_hardwareInfo_clicked(){
    ui->stackedWidget->setCurrentIndex(3);
}

